import { post } from '@/utils/request'

export default {
  List: query => post('/api/student/courses/list', query),
  getCourse: id => post('/api/student/courses/get/' + id),
  createCourse: query => post('/api/student/courses/add', query),
  updateCourse: query => post('/api/student/courses/update', query),
  deleteCourse: id => post('/api/admin/courses/delete/' + id)
}
